<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js"></script>
		  <link href="https://cdn.staticfile.net/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet">
		  <script src="https://cdn.staticfile.net/twitter-bootstrap/5.1.1/js/bootstrap.bundle.min.js"></script>
	</head>
	<body>
		<div class="container">
			<h1>图片上传</h1>
			<div class="row">
				{volist name="res" id="vo"}
				<div class="col-md-3">
					<img src="/uploads/{$vo.name}" alt="" class="img-thumbnail">
				</div>
				{/volist}
			</div>
			<br>
			<br>
			<form action="{:url('upload')}" method="post" enctype="multipart/form-data" id="form">
				<div class="form-group">
					<input type="file" name="img" class="form-control">
				</div>
				<br>
				<div class="form-group">
					<button type="submit" class="btn btn-success">上传图片</button>
				</div>
			</form>
		</div>
	</body>
</html>